<?php
require_once "../config.php";
require_once SESSION_INCLUDE;
require_once DB;
require_once GALLERY;
require_once GALLERY_INCLUDE;

session_start();

	$db = get_session_db($db_config);

	if(!user_is_logged($db))
	{
		header("Location:http://".LOGIN_FILE);
		exit();
	}

	$user = get_session_user();

	$gallery_titles = get_gallery_option_list($db, $user->get('user_id'));
?>
<style type="text/css">
@import url("../lib/form.css");
</style>
<form id='gallery_galleries' action='scripts/update_gallery.php' method='post' class="cform">
	<fieldset>
		<legend>Nuova galleria</legend>
		<ol class="cf-ol">
			<li><label for="gallery_title"><span>Nome Galleria:</span></label> <input type='text' id='new_gallery_title' name='gallery_title' /> <span class="required">Richiesto</span></div></li>
			<li><label for="gallery_description"><span>Descrizione:</span></label> <input type="text" id='gallery_description' name='gallery_description'></input></li>
		<input type='submit' value='Submit'/>
		<input type="button" value="Annulla" id="undo_btn"/>
	</fieldset>
</form>
